home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Select (Limited Edition)
/
Computer Select.iso
/
pcc
/
v04n12
/
batch2.exe
/
GOTONUM.BAT
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
DOS Batch File
|
1991-10-12
|
309 b
|
20 lines
@ECHO OFF
REM This is GOTONUM.BAT
IF %1!==! GOTO OOPS
FOR %%A IN (1 2 3) DO IF %1==%%A GOTO OKAY
GOTO OOPS
:OKAY
GOTO LABEL%1
:LABEL1
ECHO You entered 1
GOTO END
:LABEL2
ECHO You entered 2
GOTO END
:LABEL3
ECHO You entered 3
GOTO END
:OOPS
ECHO Enter %0 and then a number from 1 to 3
:END